package xyz.zhangyi.onjava.java8.example.lambda.combinator;

import java.math.BigDecimal;

public class OrderItem {
    private String orderId;
    private String orderItemId;
    private String productId;
    private long quantity;
    private BigDecimal price;

    public BigDecimal subTotalPrice() {
        return price.multiply(BigDecimal.valueOf(quantity));
    }
}
